/**
 * Author:runlin。tang.
 * Creation Time: 2016/6/29
 * Description:
 *              充电宝渲染页面
 */
define(['jquery','underscore','backbone','../../../common/js/lib/text!../../../tpl/chongDian.tpl','./chongdianbao','../m/chongLink'],
    function ($,_,Backbone,chongDian,chongdianbao,chongLink) {
    function indexV(datas){
        $('.webApp-content').html(_.template(chongDian));
        //这个是下拉点击函数
        chongdianbao();
        //连接充电宝
        $(".com_btn a").click(function(){
            var ssid = $(".chongssid").val();
            var chongpass = $(".chongpass").val();
            var mac = $(".chongssid").attr('mac');
            chongLink(ssid,chongpass,mac);
        });
    }
    return indexV;
});